<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="renderer" content="webkit">
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <title>鲁班 - 菜单详情</title>
        <!--[if lt IE 9]>
            <meta http-equiv="refresh" content="/ie" />
        <![endif]-->
        <link rel="shortcut icon" href="favicon.ico">
	    <link th:href="@{/components/bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet">
		<link th:href="@{/components/font-awesome/4.6.3/css/font-awesome.min.css}" rel="stylesheet">
	    <link th:href="@{/css/animate.min.css}" rel="stylesheet">
	    <link th:href="@{/css/style.css}" rel="stylesheet">
    </head>
    <body>
        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <div class="col-sm-12">
                    <div class="panel panel-info">
                        <div class="panel-heading">
                            <i class="fa fa-info-circle"></i> 详情
                        </div>
                        <div class="panel-body">
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">资源ID</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:text="${item.id}"></p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">资源上级ID</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:text="${item.pid}"></p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">资源名称</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:text="${item.name}"></p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">资源地址</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:text="${item.url}"></p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">资源类型</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:if="${item.type == 1}">菜单</p>
                                    <p class="form-control-static" th:if="${item.type == 2}">按钮</p>
                                    <p class="form-control-static" th:if="${item.type == 3}">其他</p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">资源状态</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:text="${item.status == 1} ? '启用' : '禁用'"></p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">资源请求类型</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:if="${item.method == 0}">ALL</p>
                                    <p class="form-control-static" th:if="${item.method == 1}">GET</p>
                                    <p class="form-control-static" th:if="${item.method == 2}">POST</p>
                                    <p class="form-control-static" th:if="${item.method == 3}">PUT</p>
                                    <p class="form-control-static" th:if="${item.method == 4}">DELETE</p>
                                    <p class="form-control-static" th:if="${item.method == 5}">OTHER</p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">是否展示</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:text="${item.isShow == 1} ? '展示' : '隐藏'"></p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">权限标志</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:text="${item.permission}"></p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">图标</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:text="${item.icon}"></p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">排序</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:text="${item.sortNo}"></p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">备注</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:text="${item.remark}"></p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">创建时间</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:text="${#dates.format(item.createTime, 'yyyy-MM-dd HH:mm')}"></p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">修改时间</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:text="${#dates.format(item.updateTime, 'yyyy-MM-dd HH:mm')}"></p>
                                </div>
                            </div>
							<div class="form-group clearfix">
                                <label class="col-xs-12 col-sm-3 col-md-2 control-label form-control-static">修改次数</label>
                                <div class="col-sm-9">
                                    <p class="form-control-static" th:text="|${item.version}次|"></p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript" th:src="@{/js/common/require.min.js}"></script>
		<script type="text/javascript" th:src="@{/js/common/config.js}"></script>
		<script type="text/javascript" th:src="@{/js/module/sys/resource/sys_resource_view.js}"></script>
    </body>
</html>